/*
 * 通用常量
 *
 * @Author:    1024创新实验室-主任：卓大
 * @Date:      2022-09-06 19:57:29
 * @Wechat:    zhuda1024
 * @Email:     lab1024@163.com
 * @Copyright  1024创新实验室 （ https://1024lab.net ），Since 2012
 */

export const PAGE_SIZE = 10;

export const PAGE_SIZE_OPTIONS = ['10', '20', '50'];

//登录页面名字
export const PAGE_PATH_LOGIN = '/login';

//404页面名字
export const PAGE_PATH_404 = '/404';

export const showTableTotal = function (total) {
  return `共${total}条`;
};

export const FLAG_NUMBER_ENUM = {
  TRUE: {
    value: 1,
    desc: '是',
  },
  FALSE: {
    value: 0,
    desc: '否',
  },
};

export const GENDER_ENUM = {
  UNKNOWN: {
    value: 0,
    desc: '未知',
  },
  MAN: {
    value: 1,
    desc: '男',
  },
  WOMAN: {
    value: 2,
    desc: '女',
  },
};

export const USER_TYPE_ENUM = {
  ADMIN_EMPLOYEE: {
    value: 1,
    desc: '员工',
  },
};

export const DATA_TYPE_ENUM = {
  NORMAL: {
    value: 1,
    desc: '普通',
  },
  ENCRYPT: {
    value: 10,
    desc: '加密',
  },

};

export const EMPLOYEE_TYPE_ENUM = {
  SYSTEM: {
    value: 1,
    desc: '系统',
  },
  ENTERPRISE: {
    value: 2,
    desc: '企业',
  },
};

export const UPSTREAM_ENUM = {
  PAINET_BOX: {
    value: 1,
    desc: '派盒子',
  },
};

export const EXECUTE_STATUS_ENUM = {
  PENDING: {
    value: 0,
    desc: '待执行',
  },
  EXECUTING: {
    value: 1,
    desc: '执行中',
  },
  SUCCESS: {
    value: 2,
    desc: '执行成功',
  },
  FAIL: {
    value: 3,
    desc: '执行失败',
  },
};

export const DEVICE_REQUEST_STATUS_ENUM = {
  NOT_REQUEST: {
    value: 0,
    desc: "未请求",
  },
  SUCCESS: {
    value: 1,
    desc: "请求成功",
  },
  FAIL: {
    value: 2,
    desc: "请求失败",
  },
};